using System;
using System.Collections.Generic;
using System.Text;
using AAM.BIZ;
using AAM;

namespace CMS.BIZ
{

    [DatabaseTable(TableName="Forums",TableAlias="forum")]
    public class BizForum : BizObject
    {

        public static readonly ObjectType ObjectType = new ObjectType("BizForum");

        private int forumID = 0;
        private string forumName = "";
        private string forumDescription = "";
        private int? forumCategoryID = null;

        public BizForum()
            : base(ObjectType, new object[] { 0 })
        {
        }

        [DatabaseRow(Identity=true,PrimaryKey=true)]
        public int ForumID
        {
            get { return forumID; }
            set { forumID = value; ID[0] = value; }
        }
        [DatabaseRow()]
        public string ForumName
        {
            get { return forumName; }
            set { forumName = value; }
        }
        [DatabaseRow()]
        public string ForumDescription
        {
            get { return forumDescription; }
            set { forumDescription = value; }
        }
        [DatabaseRow()]
        public int? ForumCategoryID
        {
            get { return forumCategoryID; }
            set { forumCategoryID = value; }
        }

    }
}
